<script setup lang="ts">
import child1 from "./child1.vue"
import {ref} from "vue"

let value = ref(1000)

const handle = (num) => {
  value.value = num
}
</script>

<template>
  父:{{ value }}
  <child1 :newValue="value" @update:newValue="handle"></child1>
</template>

<style scoped>

</style>
